#ifndef ANALYZER_COLORSPACECONVERT_H
#define ANALYZER_COLORSPACECONVERT_H

namespace AVSAnalyzer 
{
    class ColorSpaceConvert 
    {
    public:
        static unsigned char clipValue(unsigned char x, unsigned char min_val, unsigned char max_val);
        static bool bgr24ToYuv420p(unsigned char* bgrBuf, int w, int h, unsigned char* yuvBuf);
        static bool bgr24ToNv12(unsigned char* bgrBuf, int w, int h, unsigned char* nv12Buf);
    };
}

#endif //ANALYZER_COLORSPACECONVERT_H 